﻿<%@ Page  Language="C#" MasterPageFile="Admin.master" %>
<%@ Register src="../module/UpFile.ascx" tagname="UpFile" tagprefix="inal" %>
<%@ Register src="../module/Types.ascx" tagname="Types" tagprefix="inal" %>
<script runat="server">
    private int Item_Id = 0;
    private Album album;
    protected void Page_Load(object sender, EventArgs e)
    {
        Item_Id = Utils.GetQueryString("id", 0);
        album = new Album(Item_Id);
    }
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script  type="text/javascript">
        bedit_allow = "Item_Title:Item_Content";
        var Item_Time = "<%=album.Create_Time%>";
        var FileExt = "<%=album.FileExt%>";
        $(document).ready(function(){
            $("#Typ7_0").val(<%=album.Item_Typ %>);
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"><%=Lang.Show("AlbumCenter") %> - <%=Lang.Show("Edit")%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <table class="inputs">
        <tr>
            <td><%=Lang.Show("Columns") %> :</td>
            <td><inal:Types runat="server" Type="7"  /></td>
            <td><div id="Validate-Typ7_0"></div></td>
        </tr>
        <tr>
            <td><%=Lang.Show("Title") %> :</td>
            <td><input type="text" maxlength="150" id="Item_Title" name="Item_Title" value="<%=album.Item_Title %>" /></td>
            <td><div id="Validate-Item_Title"><%=Lang.Show("UpAlbumDirections")%>"></div></td>
        </tr>
        <tr>
            <td><%=Lang.Show("Content")%> :</td>
            <td><textarea rows="5" name="Item_Content" id="Item_Content"><%=album.Item_Content %></textarea></td>
            <td></td>
        </tr>
        <tr>
            <td></td>
            <td><inal:UpFile runat="server" Folder="Album" Item_Extension=".gif; *.jpg; *.png; *.svg" Item_Typ="1" Obj_Typ="7" /></td>
            <td><q id="file_upload"></q></td>
        </tr>
        <tr>
            <td><%=Lang.Show("Order")%> :</td>
            <td><input maxlength="3" type="number" max="255" min="0" id="Orders" value="<%=album.Orders %>" /></td>
            <td><div id="Validate-Orders"><%=Lang.Show("OrderDirections")%></div></td>
        </tr>
        <tr>
            <td></td>
            <td><button onclick="AlbumAddEdit(<%=Item_Id %>)" class="button"><%=Lang.Show("Submit")%></button></td>
            <td></td>
        </tr>
    </table>
</asp:Content>

